package com.authine.cloudpivot.ext.dto.inquiry;

import com.authine.cloudpivot.ext.dao.SystemFields;
import com.authine.mvp.app.launcher.domain.SelectorFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName CreateInquiryDto
 * @Description: 创建询价单
 * @Author fj
 * @Date 2021/6/4
 * @Version V1.0
 **/
@Data
@Schema(description = "CreateInquiryDto")
public class CreateInquiryDto extends SystemFields {
    @Schema(description = "询价人")
    private List<SelectorFormat> member_id;

    @Schema(description = "询价部门")
    private List<SelectorFormat> department_id;

    @Schema(description = "需求部门")
    private List<SelectorFormat> target_department_id;

    @Schema(description = "询价标题")
    private String name;

    @Schema(description = "询价截止日期")
    private String expire;

    @Schema(description = "询价方式")
    private String vendor_scope;

    @Schema(description = "联系人")
    private String contacts;

    @Schema(description = "联系方式")
    private String mobile;

    @Schema(description = "qq")
    private String qq;

    @Schema(description = "整单询价")
    private Boolean quote_total_strategy;

    @Schema(description = "密封报价")
    private Boolean quote_hermetic_strategy;

    @Schema(description = "最高运费限额")
    private BigDecimal quote_freight_limit;

    @Schema(description = "税率")
    private BigDecimal quote_tax_rate_limit;

    @Schema(description = "多次购买")
    private Boolean quote_multiple_purchases;

    @Schema(description = "报价有效期")
    private String quote_min_time_strategy;

    @Schema(description = "备注")
    private String memos;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "操作人")
    private List<SelectorFormat> operator;

    @Schema(description = "账期")
    private Integer account_period;

    @Schema(description = "外部来源客户id")
    private String client_id;

    @Schema(description = "外部来源询价id")
    private String client_inquiry_id;

    @Schema(description = "外部来源用户id")
    private String client_user_id;

    @Schema(description = "成本中心")
    private String cost_center_name;

    @Schema(description = "vmi询价")
    private Boolean vmi_inquiry;

    @Schema(description = "会员名称")
    private String member_name;

    @Schema(description = "部门名称")
    private String department_name;

    @Schema(description = "组织名称")
    private String organization_company_name;

    @Schema(description = "组织id")
    private List<SelectorFormat> organization_id;

    @Schema(description = "需求部门名称")
    private String target_department_name;

    @Schema(description = "用户登录名")
    private String user_name;

    @Schema(description = "标识是否再次询价")
    private Boolean inquiry_again;

    @Schema(description = "物流要求")
    private String logistics_demand;

    @Schema(description = "发布时间")
    private String release_time;

    @Schema(description = "询价类型")
    private String quote_public_bidding;

    @Schema(description = "成本中心id")
    private String cost_center_id;

    // 页面上查看子表名称为c5uxuiw5i4qo，javaBean中使用同样的字段
    @Schema(description = "询价商品")
    private List<CreateInquiryGoodsDto> c5uxuiw5i4qo;

    // 询价单供应商列表
    private List<String> inquiryVendorIdList;
}
